package leung.java.memcached;

import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;

public class Test {

	public static void main(String[] args) {
		
		SockIOPool sip=SockIOPool.getInstance();
		String [] services={"192.168.15.129:11211","192.168.15.130:11211"};
		sip.setServers(services);
		sip.initialize();
		
		MemCachedClient mc=new MemCachedClient();
		for(int i =0;i<100;i++){
			mc.set(i+"", i+" value");
		}
		String value=(String)mc.get("aaa");
		System.out.println(value);
	}

}
